Version

ApplyIconFilter(FormatConditionIconSet,Nullable<Int32>) Method

Syntax
'Declaration
 
Public Function ApplyIconFilter( _
   ByVal iconSet As FormatConditionIconSet, _
   ByVal iconIndex As Nullable(Of Integer) _
) As IconFilter
public IconFilter ApplyIconFilter( 
   FormatConditionIconSet iconSet,
   Nullable<int> iconIndex
)

Parameters

iconSet
The icon set containing the icon.
iconIndex
The zero-based index of the icon in the set or null for 'NoCellIcon'.
Exceptions
ExceptionDescription
System.ArgumentExceptionIf the icon set is not valid.
System.ArgumentOutOfRangeExceptionIf the index is less than zero or greater than or equal to the number of icons in the icon set..
System.InvalidOperationExceptionThe WorksheetTable.IsFilterUIVisible value of the owning table is False. Filters cannot be applied when the header row or filter button is hidden.
System.InvalidOperationExceptionIf column was removed from the table.
System.ComponentModel.InvalidEnumArgumentExceptioniconSet is not defined in the FormatConditionIconSet enumeration.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also